VM Install On Mac
Introduction
Follow the steps below to set up an Ubuntu LTS Machine on your m series chip Mac (m1, m2, etc.)
Click the icon on the menubar and select About this mac.... It should be indicated under the “Chip” category if it is an m series chip.
If your mac is not an m series mac, then follow the windows install.
Prequisites
m series mac with macOS
Steps
If you do not already have Homebrew, install it by opening a terminal and running the following command. Otherwise skip this step.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Install multipass with the following command.
brew install multipassRun the one of the following multipass command to create an instance with the name csc222 (or whatever you want to name it).
# for a minimal machine with default specs (1 cpu, 5G disk space, 1G memory, ) multipass launch 22.04 --name csc222# for a more powerful machine that can have space for a gui multipass launch 22.04 --name csc222 --cpus 2 --memory 4G --disk 50GOnce the machine is finished setting up. You can access it with the following command. If you named it something other than
csc222, use that in place ofcsc222.multipass shell csc222Once access to the machine is granted, create a user in the machine for yourself. The example below adds a user named josh.
sudo adduser joshTo add yourself to the group of users that can use the command
sudo, run the following, but use your username, not josh.sudo usermod -aG sudo josh
(Optional) Add a GUI to your machine
In the shell on your VM, run the following commands. Note that this may take a few minutes.
sudo apt update sudo apt install ubuntu-desktop xrdpWhile the second command is processing, download Microsoft Remote Desktop on your mac by going to the app store.
Open another Terminal on your mac and and type
multipass listto get the IP address of the machine. It should be something like 10.49.93.209 or 192.168.64.6 (not that exactly, but similar).Open Microsoft RDP and add the connection.